package com.example.diet_sport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @author 伽蓝尘
 * @create 2023-06-08 10:01
 */

public class usercalorie {

    @TableId(type = IdType.AUTO)
    private int id ;//id
    private int uid;//用户ID
    private double calorie;//总卡路里
    private double rest;//剩余卡路里
    private String day;//日期
    private int newin;

    @TableField(exist = false)
    public int a = 10000;

    @Override
    public String toString() {
        return "usercalorie{" +
                "id=" + id +
                ", uid=" + uid +
                ", calorie=" + calorie +
                ", rest=" + rest +
                ", day='" + day + '\'' +
                '}';
    }

    public usercalorie(int uid, String day) {
        this.id = a--;
        this.uid = uid;
        this.day = day;
    }

    public int getNewin() {
        return newin;
    }

    public void setNewin(int newin) {
        this.newin = newin;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public double getCalorie() {
        return calorie;
    }

    public void setCalorie(double calorie) {
        this.calorie = calorie;
    }

    public double getRest() {
        return rest;
    }

    public void setRest(double rest) {
        this.rest = rest;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

}
